import 'package:flutter/material.dart';
// 公共标题组件

class CommonTitle extends StatelessWidget {
  final String? title;
  const CommonTitle({super.key, this.title});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 50.0,
      padding: const EdgeInsets.only(left: 10.0),
      alignment: Alignment.centerLeft,
      child: Text(
        title!,
        style: const TextStyle(
          fontSize: 18.0,
          fontWeight: FontWeight.bold,
          color: Colors.black,
        ),
      ),
    );
  }
}